import java.util.ArrayList;
import java.util.List;

public class Main {
    public static void main(String[] args) {
        Teacher teacher1 = new Teacher("T2024001", "李华", "男", "讲师");
        Teacher teacher2 = new Teacher("T2024002", "王五", "女", "教授");
        List<Teacher> allTeachers = new ArrayList<>();
        allTeachers.add(teacher1);
        allTeachers.add(teacher2);
        Course course1 = new Course("C2024001", "Java程序设计", "计算机楼301", "周一3-4节", 3, "T2024001");
        Course course2 = new Course("C2024002", "数据库原理", "计算机楼205", "周三5-6节", 4, "T2024002");
        Student student1 = new Student("S2024001", "张三", "男", "2024级");
        Student student2 = new Student("S2024002", "李四", "女", "2024级");
        System.out.println("===== 教师开课环节 =====");
        teacher1.openCourse(course1);
        teacher2.openCourse(course2);
        System.out.println("\n===== 学生选课/退课环节 =====");
        student1.selectCourse(course1);
        student1.selectCourse(course2);
        student1.dropCourse(course1);
        student2.selectCourse(course2);
        student2.selectCourse(course2);
        System.out.println("\n===== 学生课表打印环节 =====");
        student1.printSchedule(allTeachers);
        student2.printSchedule(allTeachers);
    }
}